home *** CD-ROM | disk | FTP | other *** search
- unit Demoauto_TLB;
-
- { This file contains pascal declarations imported from a type library.
- This file will be written during each import or refresh of the type
- library editor. Changes to this file will be discarded during the
- refresh process. }
-
- { Demoauto Library }
- { Version 1.0 }
-
- interface
-
- uses Windows, ActiveX, Classes, Graphics, OleCtrls, StdVCL;
-
- const
- LIBID_Demoauto: TGUID = '{F07F2940-4BF2-11D2-BBE0-0000C0B5D6A0}';
-
- const
-
- { Component class GUIDs }
- Class_DemoAutoObj: TGUID = '{F07F2942-4BF2-11D2-BBE0-0000C0B5D6A0}';
-
- type
-
- { Forward declarations: Interfaces }
- IDemoAutoObj = interface;
- IDemoAutoObjDisp = dispinterface;
-
- { Forward declarations: CoClasses }
- DemoAutoObj = IDemoAutoObj;
-
- { Dispatch interface for DemoAutoObj Object }
-
- IDemoAutoObj = interface(IDispatch)
- ['{F07F2941-4BF2-11D2-BBE0-0000C0B5D6A0}']
- function Get_AMessage: WideString; safecall;
- procedure Set_AMessage(const Value: WideString); safecall;
- property AMessage: WideString read Get_AMessage write Set_AMessage;
- end;
-
- { DispInterface declaration for Dual Interface IDemoAutoObj }
-
- IDemoAutoObjDisp = dispinterface
- ['{F07F2941-4BF2-11D2-BBE0-0000C0B5D6A0}']
- property AMessage: WideString dispid 1;
- end;
-
- { DemoAutoObjObject }
-
- CoDemoAutoObj = class
- class function Create: IDemoAutoObj;
- class function CreateRemote(const MachineName: string): IDemoAutoObj;
- end;
-
-
-
- implementation
-
- uses ComObj;
-
- class function CoDemoAutoObj.Create: IDemoAutoObj;
- begin
- Result := CreateComObject(Class_DemoAutoObj) as IDemoAutoObj;
- end;
-
- class function CoDemoAutoObj.CreateRemote(const MachineName: string): IDemoAutoObj;
- begin
- Result := CreateRemoteComObject(MachineName, Class_DemoAutoObj) as IDemoAutoObj;
- end;
-
-
- end.
-